import type { CommonParams, CommonReturn, CommonReturnListItem } from './_utils'

export type CertModel = CommonReturnListItem<'/api/cert/query', 'get'>
export type CertLogModel = CommonParams<'/api/cert/log', 'get'>
export type CertDownloadModel = CommonParams<'/api/cert/download', 'get'>
export type CertCreateModel = CommonParams<'/api/cert', 'post'>
export type CertUpdateModel = CommonParams<'/api/cert', 'put'>
export type CertDetailModel = CommonReturn<'/api/cert', 'get'>

export type CertDnsRecordModel = CommonReturnListItem<
  '/api/cert/dns_resolve',
  'get'
>
